import sqlite3
conn = sqlite3.connect("data/test.db")
cursor = conn.cursor()
cursor.execute("SELECT * FROM stocks")
row = cursor.fetchone()
while row:
    print(row)
    row = cursor.fetchone()
cursor.close()
conn.close()